var buConform_Callback = null;
$(document).ready(function(){
	$('.buCancel').click(function(){buConform_Callback = null;$.unblockUI()});
	$('.buDetermine').click(function(){eval(buConform_Callback);$.unblockUI()});
	//$('.blockOverlay').click($.unblockUI);
});
(function($){
    //class为.autoFill_close为关闭
    $.fn.buConform = function(options){
        var defaults = {
            message: "",
			callBack:null
        },_this=this;
		this.BUC = $.extend(defaults, options);
		this.BUC.status = 0;
		var $t=$(this);
		//_this.parent().css({'position':'relative'});
		//iniBox
		buConform_Callback = null;
		this.doBlock=function(){
			buConform_Callback = _this.BUC.callBack;
			$t.find("#confirmText").html(_this.BUC.message);
			$.blockUI({
			message: $t,
			fadeIn: 90,
			fadeOut: 90,
			css:{
				border: 'none',
				opacity: 1,
				cursor: "default"},
			overlayCSS: {
				backgroundColor: '#AAA',
				cursor: "default"}
			});
		}
		
		_this.doBlock();
		
		return this;
    };
})(jQuery);
